package com.yenlien.traceyun.business.dao;

import com.yenlien.traceyun.business.entity.Address;
import com.yenlien.traceyun.business.entity.BaseSoil;
import com.yenlien.traceyun.webase.dao.BaseJpaDao;
import org.springframework.data.jpa.repository.Query;

//地区编号
public interface AddressDao extends BaseJpaDao<Address> {

    @Query(value = "select id,name,pid from t_address where name=?1", nativeQuery = true)
    Address findByName(String name);
}
